$header-height: 8%;
$text-area-height: 73px;
#chat-room{
  width: 100%;
  height: 100%;
  min-width: 800px;
  min-height: 600px;
  position: relative;
  .chat-header{
    position: relative;
    box-sizing: border-box;
    padding: 1%;
    height: $header-height;
    display: flex;
    justify-content: space-between;
    .chat-header-left{
      display: inline-block;
      .el-input{
        margin-right: 5px;
        width: 400px
      }
    }
  }
  .chat-content{
    width: 100%;
    box-sizing: border-box;
    padding: 0% 1% 1% 1%;
    height: calc(100% - $header-height);
    .message-history{
      position: relative;
      box-sizing: border-box;
      height: calc(100% - $text-area-height);
      border: 2px rgba(171, 116, 116, 0.479) solid;
      border-radius: 5px;
      h3{
        text-align: center;
      }
      .chat-room-title{
        text-align: center;
        span:nth-child(1){
          font-size: larger;
          font-weight: bold;
        }
        span:nth-child(2){
          font-size: smaller;
          font-weight: lighter;
        }
      }
      .message-item{
        .wrapper{
          margin: 10px;
          padding: 10px;
          word-wrap:break-word;
          max-width: 60%;
          display:inline-block;
        }
        .account, .time{
          display: inline-block;
          font-size: x-small;
          color: #606266;
          margin-bottom: 3px;
        }
        .data{
          text-align: left;
        }

      }
      .message-mine{
        text-align: right;
        .wrapper{
          background-color: #49c80a;
          border-top-left-radius: 20px;
          border-bottom-left-radius: 20px;
        }
      }
      .message-others{
        .wrapper{
          background-color: #f3d19e;
          border-top-right-radius: 20px;
          border-bottom-right-radius: 20px;
        }
      }
      
    }
    .message-send{
      padding-top: 0.5%;
      display: flex;
      justify-content: space-around;
      height: $text-area-height;
      .input-area{
        width: calc(100% - 110px);
      }
      .el-button{
        width: 100px;
        height: 100%;
      }
    }
  }
  .operate-chat-room{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(148, 144, 137, 0.493);
    display: flex;
    justify-content: center;
    align-items: center;
    .content{
      width: 600px;
      height: 400px;
      border-radius: 20px;
      background-color: white;
      position: relative;
      display: flex;
      justify-content: center;
      align-content: space-around;
      flex-wrap: wrap; 
      .title{
        margin: 0;
        width: 100%;
        text-align: center;
      }
      .el-icon{
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 20px;
        color: #606266;
      }
      .el-icon:hover{
        color: black;
        cursor: pointer;
      }
      .el-scrollbar{
        width: 100%;
        height: 70%;
        .chat-room-list{
          .item-in{
            animation-name: bounceInLeft;
            animation-duration: 1s;
          }
          .item-out{
            animation-name: bounceOutLeft;
            animation-duration: 1s;
          }
          .chat-room-item{
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 3px 0;
            border-radius: 10px;
            .name-span{
              width: 40%;
              text-overflow: ellipsis;
              overflow: hidden;
              white-space:nowrap;
            }
            .name-span:hover{
              color: red;
            }
            .el-button{
              height: 20px;
              font-size: small;
            }
           
          }
          .chat-room-item:hover{
            background-color: #d0d3d6;
          }
        }
      }
      .new-chat-room{
        font-size: larger;
        height: 40px;
        .el-input{
          width: 250px;
          margin-right: 5px;
        }
      }
    }
  }
}